#!/bin/bash

sleep 2

cd /home/ninetripod/catkin_ws

sudo chmod 666 /dev/gpiochip*

echo "uav service started"

python3 src/uav/startup/startup.py

sleep 4

# sudo echo 0 > /sys/class/pwm/pwmchip0/export

# sudo chmod 777 /sys/class/pwm/pwmchip0/pwm0

roslaunch uav uav.launch > log.txt